<link rel="stylesheet" href="standard.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 <!--<meta http-equiv='refresh' content='0;URL=admin_vdotype.php'>  -->
 <!--echo"<script type=text/javascript language=JavaScript1.2 src=Scripts/popup.js></script>";-->
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
     <td align="center"><p>&nbsp;</p>
     <p>&nbsp;</p>
     <table width="1024" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td width="25" height="25" background="img/tb/tb_left_top.jpg">&nbsp;</td>
         <td height="25" background="img/tb/tb_top.jpg">&nbsp;</td>
         <td width="25" height="25" background="img/tb/tb_right_top.jpg">&nbsp;</td>
       </tr>
       <tr>
         <td width="25" align="left" background="img/tb/tb_left.jpg">&nbsp;</td>
         <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td height="30" align="left" bgcolor="#CCFF00" class="style7"><span class="scapmain style7">&nbsp;<img src="img/img05.gif" align="absbottom" /></span> ยืนยันการลบข้อมูล - สื่อมัลติมีเดีย</td>
             </tr>
             <tr>
               <td align="center" bgcolor="#FFFFFF"><p>&nbsp;</p>
                   <p>
<?
//session_start();

       										
	include "connectdb.php" ;

		if(!$delete){
		$SQL_SELECT_VDODETAIL="SELECT * FROM ag_vdodetail where vdo_id='$id';";
		$dbquery=mysql_db_query($dbname,$SQL_SELECT_VDODETAIL);
		$result = mysql_fetch_array($dbquery);
		$vdo_id= $result[vdo_id];
		$vdo_name  = $result[vdo_name];
			
		echo"<br><br><br>";
		echo"<center><form method=post  acton=$PHP_SELF >";
		echo "<font color=red>คุณต้องการลบสื่อมัลติมีเดียหมายเลข : <b>$vdo_id  </b>เรื่อง : <b>$vdo_name </b> <br>ใช่หรือไม่?</font>";
		echo"<br><br><br>";
		echo "<input type=submit value=ตกลง  name=delete>&nbsp;<input type=button value=ยกเลิก onclick=javascript:history.back();>";
		echo "</form></center>";
		}
		
		else
		
		{

		$SQL_DELETE_VDOTYPEDETAIL="DELETE FROM ag_vdotypedetail where vdo_id='$id'";
		$dbquery=mysql_db_query($dbname,$SQL_DELETE_VDOTYPEDETAIL);
		
		$SQL_DELETE_VDODETAIL="DELETE FROM ag_vdodetail where vdo_id='$id'";
		$dbquery=mysql_db_query($dbname,$SQL_DELETE_VDODETAIL);
			
		echo"<center><br><font color=red>ลบข้อมูลเรียบร้อย</font><br><br><br>";
		echo"<input type=button value=ตกลง  onclick=window.location='vdo_list_edit.php';></center>";
		mysql_close();//ปิดการเชื่อมต่อฐานข้อมูล
		}
/* ยังไม่มีการลบข้อมูลในตาราง ag_userwatch */
//?>
		</p>
        
        
                 <p>&nbsp;</p>
                 <p>&nbsp;</p>
                 <p>&nbsp;</p></td>
             </tr>
             <tr>
               <td height="25" bgcolor="#CCFF00">&nbsp;</td>
             </tr>
         </table></td>
         <td width="25" align="right" background="img/tb/tb_right.jpg">&nbsp;</td>
       </tr>
       <tr>
         <td width="25" height="25" background="img/tb/tb_left_foot.jpg">&nbsp;</td>
         <td height="25" background="img/tb/tb_foot.jpg">&nbsp;</td>
         <td width="25" height="25" background="img/tb/tb_right_foot.jpg">&nbsp;</td>
       </tr>
     </table>     <p>&nbsp;</p></td>
   </tr>
 </table>
 